projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18be491
)
disconnect stdio for wasm binaries
author
Joey Hess
<joeyh@joeyh.name>
Fri, 7 Mar 2025 21:15:21 +0000
(17:15 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Fri, 7 Mar 2025 21:15:21 +0000
(17:15 -0400)
doc/special_remotes/compute/git-annex-compute-wasmedge
patch
|
blob
|
history
diff --git
a/doc/special_remotes/compute/git-annex-compute-wasmedge
b/doc/special_remotes/compute/git-annex-compute-wasmedge
index c20f7824a87bb2045cc4decd967955f9dfed3075..a734418125632d4b8669e6c3c7ca3e20e9dce067 100755
(executable)
--- a/
doc/special_remotes/compute/git-annex-compute-wasmedge
+++ b/
doc/special_remotes/compute/git-annex-compute-wasmedge
@@
-43,5
+43,10
@@
if [ -n "$wasm" ]; then
# Use --force-interpreter to avoid wasmedge running AOT native
# instructions, which is insecure if the WASM binary comes from
# an untrusted source.
- wasmedge --dir "/:`pwd`" --force-interpreter -- "$wasm" "$@" >&2
+ #
+ # Avoid displaying output from the WASM binary, since it is
+ # untrusted, and could contain harmful terminal escape sequences,
+ # for example.
+ wasmedge --dir "/:`pwd`" --force-interpreter -- "$wasm" "$@" \
+ >/dev/null 2>/dev/null </dev/null
fi